<%@ page pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ page trimDirectiveWhitespaces="true" %>
<fmt:setLocale value="zh_CN"/>
<div class="show-info">
<style>
	table.show td input[type="text"] {
		width: 90%;
	}
</style>
<c:if test="${not empty list }">
	<table class="tab-show partshow">
		<col width="">
		<col width="">
		<col width="">
		<col width="">
		<tr>
			<th class="taLeft">字段名</th>
			<th class="taLeft">数据库类型</th>
			<th class="taLeft">对应java数据类型</th>
			<th class=taLeft>字段注释</th>
		</tr>
	<c:forEach var="model" items="${list }" varStatus="var">
		<tr>
			<td>${model.columnName }</td>
			<td>${model.columnType }</td>
			<td>${model.javaDataType }</td>
			<td >${model.remarks }</td>
		</tr>
	</c:forEach>
	</table>
</c:if>
<c:if test="${empty list }">
	<table>
		<!-- 无数据时展示，有数据时展示上面的列表 -->
		<tr>
			<td colspan="8" class="taCenter">没有表字段信息！</td>
		</tr>
	</table>
</c:if>
</div>
